import request from '@/utils/request'

// 查询设备状态记录列表
export function listDeviceStatusLog(query) {
  return request({
    url: '/system/deviceStatusLog/list',
    method: 'get',
    params: query
  })
}

// 查询设备状态记录详细
export function getDeviceStatusLog(logId) {
  return request({
    url: '/system/deviceStatusLog/' + logId,
    method: 'get'
  })
}

// 新增设备状态记录
export function addDeviceStatusLog(data) {
  return request({
    url: '/system/deviceStatusLog',
    method: 'post',
    data: data
  })
}

// 修改设备状态记录
export function updateDeviceStatusLog(data) {
  return request({
    url: '/system/deviceStatusLog',
    method: 'put',
    data: data
  })
}

// 删除设备状态记录
export function delDeviceStatusLog(logId) {
  return request({
    url: '/system/deviceStatusLog/' + logId,
    method: 'delete'
  })
}
